import React from "react";
import {TextField} from "@mui/material";

export const SmallText = ({label, name, value, required = true, InputProps = null, autoFocus = false, onChange}) => (
    <TextField
        variant="outlined" margin="normal" fullWidth size="small" autoComplete="off" required={required}
        InputProps={InputProps} label={label} name={name} value={value || ''} autoFocus={autoFocus}
        onChange={onChange}/>
);
